package com.ht.api.call.func.impl;

import com.ht.api.bean.AjaxResult;
import com.ht.api.bean.LoginBean;
import com.ht.api.call.func.IFunctionCall;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DemoBeforeFunctionCall implements IFunctionCall {

	@Override
	public String getName() {
		return "前置函数Demo";
	}

	@Override
	public JSONObject execute(LoginBean me, JSONObject param, AjaxResult result) {
		log.info("前置函数，收到的参数为：{}， result：}", JSONUtil.toJsonStr(param), 
				JSONUtil.toJsonStr(result));
		return null;
	}

}
